<form name="userSignUp" novalidate>
  <div class="form-group">
    <label for="inputName">用户名</label>
    <input type="text" class="form-control" id="inputName" ng-model="inputName" placeholder="用户名" required>
  </div>
  <div class="form-group">
    <label for="inputPassword">密码</label>
    <input type="password" class="form-control" id="inputPassword" ng-model="inputPassword" placeholder="密码" required>
  </div>
  <button type="submit" class="btn btn-primary btn-block btn-lg" ng-disabled="userSignUp.$invalid" ng-click="logup()">注册</button>
</form>
